package com.jic.member.mapper;

import com.jic.member.entity.MememberIntegralOrderRecharge;
import com.jic.member.response.MememberIntegralRuleResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 会员积分规则下单-充值赠送表
 *
 * @author :
 * @version : v1.0.0
 * @email :
 * @since : 2020-04-02 03:34:47
 */
@Mapper
public interface  MememberIntegralOrderRechargeMapper {

    long insert(MememberIntegralOrderRecharge mememberIntegralOrderRecharge);

    long delete(Long id);

    long update(MememberIntegralOrderRecharge mememberIntegralOrderRecharge);

    MememberIntegralOrderRecharge queryByPrimaryKey(Long id);

    List<MememberIntegralOrderRecharge> query(MememberIntegralOrderRecharge mememberIntegralOrderRecharge);

    List<MememberIntegralOrderRecharge> queryPage(@Param("startIndex") int startIndex , @Param("limit") int limit , @Param("mememberIntegralOrderRecharge") MememberIntegralOrderRecharge mememberIntegralOrderRecharge);

    long queryPageCount(MememberIntegralOrderRecharge mememberIntegralOrderRecharge);

    List<MememberIntegralOrderRecharge> queryByRuleId(Long ruleId);

    MememberIntegralRuleResponse queryMememberIntegralOrderRechargeByRuleId(@Param("ruleId") Long ruleId);

    MememberIntegralOrderRecharge queryInfoByRuleId(Long ruleId);
}
